package tests;

import java.util.ArrayList;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import sauvaget.Color;
import sauvaget.Image;
import sauvaget.IttensTable;

public class TestImage2 {

	private Image image;
	private IttensTable ittensTable; 
	private ArrayList<Color> sectorO, sectorB;
	
@Before
    public void createColor(){
		Color orange1 = new Color( 29, 29, 64, 322);
		Color orange2 = new Color( 29, 29, 64, 322);
		Color orange3 = new Color( 29, 29, 64, 322);
		Color orange4 = new Color( 29, 29, 64, 322);
		Color orange5 = new Color( 29, 29, 64, 322);
		
		sectorO = new ArrayList<Color>();
		sectorO.add(orange1);
		sectorO.add(orange2);
		sectorO.add(orange3);
		sectorO.add(orange4);
		sectorO.add(orange5);
		
		Color blue1   = new Color(189, 56, 28, 644);
		Color blue2   = new Color(189, 56, 28, 644);
		Color blue3   = new Color(189, 56, 28, 644);
		Color blue4   = new Color(189, 56, 28, 644);
		Color blue5   = new Color(189, 56, 28, 644);
		Color blue6   = new Color(189, 56, 28, 644);
		Color blue7   = new Color(189, 56, 28, 644);
		Color blue8   = new Color(189, 56, 28, 644);
		Color blue9   = new Color(189, 56, 28, 644);
		
		sectorB = new ArrayList<Color>();
		sectorB.add(blue1);
		sectorB.add(blue2);
		sectorB.add(blue3);
		sectorB.add(blue4);
		sectorB.add(blue5);
		sectorB.add(blue6);
		sectorB.add(blue7);
		sectorB.add(blue8);
		sectorB.add(blue9);
		
		
		image = new Image(sectorB, sectorO);
		ittensTable = new IttensTable();
		
    }

@Test
	public void verifyHarmony(){
		Assert.assertTrue(ittensTable.verifyHarmony(image));
	}
}
